Skip to content

Conversation

@sparr
Copy link

@sparr sparr commented Nov 14, 2025

On a fresh clone of this repo, rollup -c fails with errors related to ES/CJS problems.

(node:1224971) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/sparr/src/games/Screeps/codebases/2025/rollup.config.js is not specified and it doesn't parse as CommonJS.
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
To eliminate this warning, add "type": "module" to /home/sparr/src/games/Screeps/codebases/2025/package.json.

And then there are further errors that I failed to capture, related to the use of require.

This PR updates the package.json and replaces require in the rollup config.

@sparr
Copy link
Author

sparr commented Nov 30, 2025

On a later clone of the repo, attempting to use this branch also produced errors, and I went back to a version closer to the current master branch. Subtle changes to the typescript environment are likely the cause. I'm closing this for now.

@sparr sparr closed this Nov 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant